home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 15 / Amiga Plus Leser CD 15.iso / Tools / Development / MosaicSRC / src / htmlamp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-03-13  |  6.3 KB  |  180 lines

  1. // MDF - PORT FROM NCSA VERSION 2.1
  2.  
  3. /****************************************************************************
  4.  * NCSA Mosaic for the X Window System                                      *
  5.  * Software Development Group                                               *
  6.  * National Center for Supercomputing Applications                          *
  7.  * University of Illinois at Urbana-Champaign                               *
  8.  * 605 E. Springfield, Champaign IL 61820                                   *
  9.  * mosaic@ncsa.uiuc.edu                                                     *
  10.  *                                                                          *
  11.  * Copyright (C) 1993, Board of Trustees of the University of Illinois      *
  12.  *                                                                          *
  13.  * NCSA Mosaic software, both binary and source (hereafter, Software) is    *
  14.  * copyrighted by The Board of Trustees of the University of Illinois       *
  15.  * (UI), and ownership remains with the UI.                                 *
  16.  *                                                                          *
  17.  * The UI grants you (hereafter, Licensee) a license to use the Software    *
  18.  * for academic, research and internal business purposes only, without a    *
  19.  * fee.  Licensee may distribute the binary and source code (if released)   *
  20.  * to third parties provided that the copyright notice and this statement   *
  21.  * appears on all copies and that no charge is associated with such         *
  22.  * copies.                                                                  *
  23.  *                                                                          *
  24.  * Licensee may make derivative works.  However, if Licensee distributes    *
  25.  * any derivative work based on or derived from the Software, then          *
  26.  * Licensee will (1) notify NCSA regarding its distribution of the          *
  27.  * derivative work, and (2) clearly notify users that such derivative       *
  28.  * work is a modified version and not the original NCSA Mosaic              *
  29.  * distributed by the UI.                                                   *
  30.  *                                                                          *
  31.  * Any Licensee wishing to make commercial use of the Software should       *
  32.  * contact the UI, c/o NCSA, to negotiate an appropriate license for such   *
  33.  * commercial use.  Commercial use includes (1) integration of all or       *
  34.  * part of the source code into a product for sale or license by or on      *
  35.  * behalf of Licensee to third parties, or (2) distribution of the binary   *
  36.  * code or source code to third parties that need it to utilize a           *
  37.  * commercial product sold or licensed by or on behalf of Licensee.         *
  38.  *                                                                          *
  39.  * UI MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR   *
  40.  * ANY PURPOSE.  IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED          *
  41.  * WARRANTY.  THE UI SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY THE    *
  42.  * USERS OF THIS SOFTWARE.                                                  *
  43.  *                                                                          *
  44.  * By using or copying this Software, Licensee agrees to abide by the       *
  45.  * copyright law and all other applicable laws of the U.S. including, but   *
  46.  * not limited to, export control laws, and the terms of this license.      *
  47.  * UI shall have the right to terminate this license immediately by         *
  48.  * written notice upon Licensee's breach of, or non-compliance with, any    *
  49.  * of its terms.  Licensee may be held legally responsible for any          *
  50.  * copyright infringement that is caused or encouraged by Licensee's        *
  51.  * failure to abide by the terms of this license.                           *
  52.  *                                                                          *
  53.  * Comments and questions are welcome and can be sent to                    *
  54.  * mosaic-x@ncsa.uiuc.edu.                                                  *
  55.  ****************************************************************************/
  56.  
  57.  
  58. typedef struct amp_esc_rec {
  59.     char *tag;
  60.     char value;
  61. } AmpEsc;
  62.  
  63. static AmpEsc AmpEscapes[] = {
  64.     {"lt", '<'},
  65.     {"LT", '<'},
  66.     {"gt", '>'},
  67.     {"GT", '>'},
  68.     {"amp", '&'},
  69.     {"AMP", '&'},
  70.     {"quot", '\"'},
  71.     {"QUOT", '\"'},
  72.     {"Agrave", '\300'},
  73.     {"Aacute", '\301'},
  74.     {"Acirc", '\302'},
  75.     {"Atilde", '\303'},
  76.     {"Auml", '\304'},
  77.     {"Aring", '\305'},
  78.     {"AElig", '\306'},
  79.     {"Ccedil", '\307'},
  80.     {"Egrave", '\310'},
  81.     {"Eacute", '\311'},
  82.     {"Ecirc", '\312'},
  83.     {"Euml", '\313'},
  84.     {"Igrave", '\314'},
  85.     {"Iacute", '\315'},
  86.     {"Icirc", '\316'},
  87.     {"Iuml", '\317'},
  88.     {"ETH", '\320'},
  89.     {"Ntilde", '\321'},
  90.     {"Ograve", '\322'},
  91.     {"Oacute", '\323'},
  92.     {"Ocirc", '\324'},
  93.     {"Otilde", '\325'},
  94.     {"Ouml", '\326'},
  95.  
  96.     {"?", '\327'}, /* ? */
  97.  
  98.     {"Oslash", '\330'},
  99.     {"Ugrave", '\331'},
  100.     {"Uacute", '\332'},
  101.     {"Ucirc", '\333'},
  102.     {"Uuml", '\334'},
  103.     {"Yacute", '\335'},
  104.     {"THORN", '\336'},
  105.     {"szlig", '\337'},
  106.     {"agrave", '\340'},
  107.     {"aacute", '\341'},
  108.     {"acirc", '\342'},
  109.     {"atilde", '\343'},
  110.     {"auml", '\344'},
  111.     {"aring", '\345'},
  112.     {"aelig", '\346'},
  113.     {"ccedil", '\347'},
  114.     {"egrave", '\350'},
  115.     {"eacute", '\351'},
  116.     {"ecirc", '\352'},
  117.     {"euml", '\353'},
  118.     {"igrave", '\354'},
  119.     {"iacute", '\355'},
  120.     {"icirc", '\356'},
  121.     {"iuml", '\357'},
  122.     {"eth", '\360'},
  123.     {"ntilde", '\361'},
  124.     {"ograve", '\362'},
  125.     {"oacute", '\363'},
  126.     {"ocirc", '\364'},
  127.     {"otilde", '\365'},
  128.     {"ouml", '\366'},
  129.  
  130.     {"?", '\367'}, /* ? */
  131.  
  132.     {"oslash", '\370'},
  133.     {"ugrave", '\371'},
  134.     {"uacute", '\372'},
  135.     {"ucirc", '\373'},
  136.     {"uuml", '\374'},
  137.     {"yacute", '\375'},
  138.     {"thorn", '\376'},
  139.     {"yuml", '\377'},
  140.  
  141.     {"reg",'®'},                /* Added by Stefan Burstroem 1995-06-02 */
  142.     {"copy",'©'},
  143.  
  144.     /* Added by mwm 1995-11-23 */
  145.     {"nbsp",  '\240'},
  146.     {"iexcl",  '\241'},
  147.     {"cent", '\242'},
  148.     {"pound", '\243'},
  149.     {"curren", '\244'},
  150.     {"yen", '\245'},
  151.     {"brvbar", '\246'},
  152.     {"sect", '\247'},
  153.     {"uml", '\250'},
  154.     {"ordf", '\252'},
  155.     {"laquo", '\253'},
  156.     {"not", '\254'},
  157.     {"shy", '\255'},
  158.     {"macr", '\257'},
  159.     {"deg", '\260'},
  160.     {"plusmn", '\261'},
  161.     {"sup2", '\262'},
  162.     {"sup3", '\263'},
  163.     {"acute", '\264'},
  164.     {"micro", '\265'},
  165.     {"para", '\266'},
  166.     {"middot", '\267'},
  167.     {"cedil", '\270'},
  168.     {"sup1", '\271'},
  169.     {"ordm", '\272'},
  170.     {"raquo", '\273'},
  171.     {"frac14", '\274'},
  172.     {"frac12", '\275'},
  173.     {"frac34", '\276'},
  174.     {"iquest", '\277'},
  175.     {"times", '\327'},
  176.         {"divide", '\367'},
  177.     {NULL, '\0'},
  178. };
  179.  
  180.